Contacts

interface Contacts

This module is used to manage the contacts of the current session.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val rainbowContacts: ArrayItemList<IRainbowContact>

Get the list of Rainbow contacts

Link copied to clipboard
abstract val rainbowSupportBot: IRainbowContact?

Get a the Rainbow Support Bot contact.

Functions

Link copied to clipboard
abstract fun fetchContactDataById(id: String?, listener: RainbowListener<IRainbowContact, UserRepository.FetchUserDataError>? = null)

Get more information of a contact directly from the server.

Link copied to clipboard
abstract fun getContactFromId(contactId: String?): IRainbowContact?

Get a contact from his id.

Link copied to clipboard
abstract fun getContactFromJid(jabberId: String?): IRainbowContact?

Get a contact from his jabber id.

Link copied to clipboard
abstract fun getContactFromPhoneNumber(number: String?): IRainbowContact?

Get a contact from his number.

Link copied to clipboard
abstract fun isLoggedInUser(contact: IRainbowContact?): Boolean

Check if a given contact is the same as the logged in user.

Link copied to clipboard
abstract fun refreshContactLastActivityDate(contact: IRainbowContact?)

Refresh the contact last activity date from server. A presence update notification on the contact will be triggered if needed.

Link copied to clipboard
abstract fun searchByJid(jid: String?, listener: IRainbowContactsSearchListener?)

Search a contact by his jid.

Link copied to clipboard
abstract fun searchByName(name: String, listener: IRainbowContactsSearchListener?)

Search a contact by his first or last name.

Link copied to clipboard
abstract fun searchByNameOnlyInUserCompany(name: String, listener: IRainbowContactsSearchListener?)

Search a contact by his first or last name but only in his company.

Link copied to clipboard
abstract fun updateCalendarAutomaticReply(contact: IRainbowContact?)

Update the contact calendar automatic reply from server. A presence update notification on the contact will be triggered if needed.